                                                                   // ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);
if (prev_room_no == 3) {
 position(ego,71,96);
}

  draw(ego);
  show.pic();
 }
if (said("look")) {
  print("You are outside the door to the cave where Lewelto lives.");
  if(f92){
  print("You can't go back in until you have completed your training.");
}
}
if(f3){
if(f92){
move.obj(ego,71,96,2,f93);
if(f93){
print("You can't go in there until you have completed your training !");
}
}
else{
new.room(3);
}
}

if (ego_edge_code == bottom_edge) {   // ego touching bottom edge of screen
  new.room(6);
}

if (ego_edge_code == left_edge) {     // ego touching left edge of screen
  new.room(5);
}

return();